<template>
    <div id="app">
        <router-view></router-view>
        <e-chat-dialog></e-chat-dialog>
    </div>
</template>

<script>
    export default {
        name: "App",
        data() {
            return {
                data: [],
            };
        },
        created() {
            var session = this.$store.state.user.session;
            console.log(session)
            if(session.username){
                this.$store.dispatch("chat/login");
            }
        }

    };
</script>

<style>
    html,
    body {
        height: 100%;
        width: 100%;
    }

    #app {
        width: 100%;
        height: 100%;
    }
</style>
